package com.flyme.module.base.client.api;

import com.flyme.common.core.model.ResultBody;
import com.flyme.common.core.model.query.PagerInfo;
import com.flyme.module.base.client.entity.SysExamItem;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/examItem/")
public interface SysExamItemRemoteService {

    /**
     * 考试安排条件列表
     */
    @PostMapping("/list")
    ResultBody list(@ModelAttribute PagerInfo pagerInfo, @ModelAttribute SysExamItem examItem);

    /**
     * 根据id删除
     */
    @GetMapping("delByTagId/{id}")
    ResultBody delByTagId(@PathVariable Long id);

    /**
     * 添加考试条件
     */
    @PostMapping("/addExamItem")
    ResultBody addExamItem(@ModelAttribute SysExamItem examItem);

    /**
     * 查询考试条件项
     */
    @PostMapping("/selectItem")
    ResultBody selectItem();

    /**
     * 根据id重置
     */
    @GetMapping("resetApplyItem/{examinationId}")
    ResultBody resetApplyItem(@PathVariable Long examinationId);

}
